package com.futao.controller;

import com.futao.sys.model.MyException;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author futao
 * Created on 18-6-5-下午1:24.
 */
@RestController
public class ErrorController {

    @RequestMapping(value = "/jsonError")
    public String error() throws MyException {
        throw new MyException("发生异常");
    }
}

